const BehaviorAll = require("../../../behaviors/behavior_all.js");
const ServiceCollege = require("../../../service/service_college.js");

Component({
  /**
   * behaviors
   */
  behaviors: [BehaviorAll],
  /**
    * 页面的初始数据
    */
  data: {
    news: null,
  },

  methods: {
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
      const _this = this;
      const id = options.id;
      ServiceCollege.findById(id, function(data){
        _this.setData({
          news:data
        })
      });
    }
  }

})